/<template>
  <div>
    <slot name="banner"></slot>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="orangered">
      <van-swipe-item>
        <van-grid :column-num="5">
          <van-grid-item
            v-for="value in list"
            :key="value.id"
            :icon="value.img"
            :text="value.title"
          />
        </van-grid>
      </van-swipe-item>
      <van-swipe-item>
        <van-grid :column-num="5">
          <van-grid-item
            v-for="value in list"
            :key="value.id"
            :icon="value.img"
            :text="value.title"
          />
        </van-grid>
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
import Mock from "mockjs";
const data = Mock.mock({
  "list|10": [
    {
      img: "@image(50x50,@color)",
      title: "@ctitle(2)",
      id: "@id",
    },
  ],
});
export default {
  data() {
    return {
      list: data.list,
    };
  },
};
</script>

<style>
.my-swipe .van-swipe-item {
  height: 200px;
  color: #fff;
  font-size: 20px;
  /* line-height: 150px; */
  text-align: center;
  /* background-color: #39a9ed; */
  
}
</style>